package org.base.dao.modules.sys.model;

import java.util.Date;
import java.util.Set;

import org.base.dao.modules.base.BaseDO;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@TableName("sys_user")
public class SysUserDO extends BaseDO {
	
	@TableField("username")
	private String username;
	
	@TableField("password")
	private String password;
	
	@TableField("enabled")
	private Boolean enabled;
	
	@TableField("dept_id")
	private Long deptId;
	
	@TableField("last_password_reset_date")
	private Date lastPasswordResetDate;
	
	@TableField("email")
	private String email;
	
	@TableField("telephone")
	private String telephone;
	
	@TableField("sex")
	private int sex = 1;
	
	/**
	 * 账号是否可用
	 */
	@TableField("status")
	private boolean status = true;
	
	/**
	 * 是否为部门领导
	 */
	@TableField("leader")
	private boolean leader = false;
	
	/**
	 * 是否为超管
	 */
	@TableField("admin")
	private boolean admin = false;
	
	@TableField("delete_flag")
	private boolean deleteFlag = false;
	
	@TableField(exist=false)
	private Set<String> authorities;
	
	@TableField(exist=false)
	private Set<Long> roleIds;
	
}
